import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

Vue.directive('beauty',function(element,{value}){
  element.innerText = value
    element.style.color = 'red'
    element.style.backgroundColor = 'yellow'
    element.style.border = '5px solid green'
})

new Vue({
  el:'#app',
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  render:h => h(App)
})